package com.xyf.sys.mapper;

import com.xyf.sys.domain.GoodsCartItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface GoodsCartItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GoodsCartItem record);

    int insertSelective(GoodsCartItem record);

    GoodsCartItem selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GoodsCartItem record);

    int updateByPrimaryKey(GoodsCartItem record);

    List<GoodsCartItem> selectByGoodsCartId(@Param("goodsCartId") Long goodsCartId);

    List<GoodsCartItem> selectByGoodsCartIdAndStatus(@Param("goodsCartId") Long goodsCartId, @Param("status") String status);
}